package com.zhongke.cotrun.service;

import com.github.pagehelper.PageInfo;
import com.zhongke.cotrun.model.pojo.UserIntegralHistory;
import com.zhongke.cotrun.model.pojo.UserIntegralHistoryVo;

import java.util.List;

public interface UserIntegralHistoryService {
    /**
     * 新增增加积分历史记录
     * @param userIntegralHistory
     * @return
     */
    public Boolean insertUserIntegralHistory(UserIntegralHistory userIntegralHistory);

    /**
     * 根据用户id号查看积分记录
     * @param userId
     * @return
     */

    public PageInfo selectUserIntegralHistoryByUserId(Integer userId ,Integer pageNumber,Integer pageSize);

    /**
     * 查看所有的积分记录
     * @return
     */
    public PageInfo selectUserIntegralHistory(Integer pageNumber,Integer pageSize);

    /**
     * 查看近三个月的数据
     * @param userId
     * @return
     */
    public  List<UserIntegralHistoryVo> selctUserIntegralHistoryForThreeMounth(Integer userId);


    /**
     * 根据条件查询历史记录
     * @return
     */
    public PageInfo seleHistoryByCndition(UserIntegralHistory userIntegralHistory,Integer pageNumber,Integer pageSize);

    /**
     * 查看自己的根据条件
     * @param userIntegralHistory
     * @return
     */
    public  List<UserIntegralHistoryVo> selectUserIntegralHistoryOfmy(UserIntegralHistory userIntegralHistory);

    /**
     * 根据条件搜索历史记录
     * @param userIntegralHistory
     * @param pageNumber
     * @param pageSize
     * @return
     */
    public PageInfo adminSelectIntegralHistory(UserIntegralHistory userIntegralHistory,Integer pageNumber,Integer pageSize);

}
